﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001175 RID: 4469
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SetMissionEventProgressCsReq : IMessage<SetMissionEventProgressCsReq>, IMessage, IEquatable<SetMissionEventProgressCsReq>, IDeepCloneable<SetMissionEventProgressCsReq>, IBufferMessage
	{
		// Token: 0x17003889 RID: 14473
		// (get) Token: 0x0600C801 RID: 51201 RVA: 0x0021B34D File Offset: 0x0021954D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SetMissionEventProgressCsReq> Parser
		{
			get
			{
				return SetMissionEventProgressCsReq._parser;
			}
		}

		// Token: 0x1700388A RID: 14474
		// (get) Token: 0x0600C802 RID: 51202 RVA: 0x0021B354 File Offset: 0x00219554
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SetMissionEventProgressCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700388B RID: 14475
		// (get) Token: 0x0600C803 RID: 51203 RVA: 0x0021B366 File Offset: 0x00219566
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SetMissionEventProgressCsReq.Descriptor;
			}
		}

		// Token: 0x0600C804 RID: 51204 RVA: 0x0021B36D File Offset: 0x0021956D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetMissionEventProgressCsReq()
		{
		}

		// Token: 0x0600C805 RID: 51205 RVA: 0x0021B375 File Offset: 0x00219575
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetMissionEventProgressCsReq(SetMissionEventProgressCsReq other) : this()
		{
			this.progress_ = other.progress_;
			this.missionEventId_ = other.missionEventId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C806 RID: 51206 RVA: 0x0021B3A6 File Offset: 0x002195A6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetMissionEventProgressCsReq Clone()
		{
			return new SetMissionEventProgressCsReq(this);
		}

		// Token: 0x1700388C RID: 14476
		// (get) Token: 0x0600C807 RID: 51207 RVA: 0x0021B3AE File Offset: 0x002195AE
		// (set) Token: 0x0600C808 RID: 51208 RVA: 0x0021B3B6 File Offset: 0x002195B6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Progress
		{
			get
			{
				return this.progress_;
			}
			set
			{
				this.progress_ = value;
			}
		}

		// Token: 0x1700388D RID: 14477
		// (get) Token: 0x0600C809 RID: 51209 RVA: 0x0021B3BF File Offset: 0x002195BF
		// (set) Token: 0x0600C80A RID: 51210 RVA: 0x0021B3C7 File Offset: 0x002195C7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MissionEventId
		{
			get
			{
				return this.missionEventId_;
			}
			set
			{
				this.missionEventId_ = value;
			}
		}

		// Token: 0x0600C80B RID: 51211 RVA: 0x0021B3D0 File Offset: 0x002195D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SetMissionEventProgressCsReq);
		}

		// Token: 0x0600C80C RID: 51212 RVA: 0x0021B3DE File Offset: 0x002195DE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SetMissionEventProgressCsReq other)
		{
			return other != null && (other == this || (this.Progress == other.Progress && this.MissionEventId == other.MissionEventId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C80D RID: 51213 RVA: 0x0021B41C File Offset: 0x0021961C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Progress != 0U)
			{
				num ^= this.Progress.GetHashCode();
			}
			if (this.MissionEventId != 0U)
			{
				num ^= this.MissionEventId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C80E RID: 51214 RVA: 0x0021B474 File Offset: 0x00219674
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C80F RID: 51215 RVA: 0x0021B47C File Offset: 0x0021967C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C810 RID: 51216 RVA: 0x0021B488 File Offset: 0x00219688
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Progress != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.Progress);
			}
			if (this.MissionEventId != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.MissionEventId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C811 RID: 51217 RVA: 0x0021B4E4 File Offset: 0x002196E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Progress != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Progress);
			}
			if (this.MissionEventId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MissionEventId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C812 RID: 51218 RVA: 0x0021B53C File Offset: 0x0021973C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SetMissionEventProgressCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Progress != 0U)
			{
				this.Progress = other.Progress;
			}
			if (other.MissionEventId != 0U)
			{
				this.MissionEventId = other.MissionEventId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C813 RID: 51219 RVA: 0x0021B58C File Offset: 0x0021978C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C814 RID: 51220 RVA: 0x0021B598 File Offset: 0x00219798
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 56U)
				{
					if (num != 64U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.MissionEventId = input.ReadUInt32();
					}
				}
				else
				{
					this.Progress = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005054 RID: 20564
		private static readonly MessageParser<SetMissionEventProgressCsReq> _parser = new MessageParser<SetMissionEventProgressCsReq>(() => new SetMissionEventProgressCsReq());

		// Token: 0x04005055 RID: 20565
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005056 RID: 20566
		public const int ProgressFieldNumber = 7;

		// Token: 0x04005057 RID: 20567
		private uint progress_;

		// Token: 0x04005058 RID: 20568
		public const int MissionEventIdFieldNumber = 8;

		// Token: 0x04005059 RID: 20569
		private uint missionEventId_;
	}
}
